package com.chinaunicom.emergency.repository;

import com.chinaunicom.emergency.model.Attachment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

//import com.chinaunicom.module.DiscussType;

/**
 * @author lilaing
 * @date 2018/1/15
 * 附件
 */
public interface AttachmentRepository extends JpaRepository<Attachment,String>, JpaSpecificationExecutor {

    Attachment getAttachmentByFileUrl(String fileUrl);

    Attachment findByPid(String attachId);

    Attachment findByPidAndIsSoftDel(String attachId, int i);
}
